<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>Document</title>
    <style></style>
  </head>
  <body>
    <div>
      <h1>Dep</h1>
      <p>功能</p>
      <p>1.收集依赖,添加观察者(watcher)</p>
      <p>2.通知所有观察者</p>
      <p>结构</p>
      <p>===========类名</p>
      <p>dep</p>
      <p>===========类属性</p>
      <p>subs</p>
      <p>类方法</p>
      <p>===========addSub(sub)</p>
      <p>notify()</p>
    </div>
    <script></script>
  </body>
</html>
